package com.sscw.task.enums;

/**
 * @Author: sunxuzong
 * @Date: 2024/07/19
 */
public enum RankTypeEnum {
    low_machine(0,"低倍机"),
    high_machine(1,"高倍机")
    ;

    private Integer code;

    private String desc;

    RankTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static RankTypeEnum getByCode(Integer code){
        for (RankTypeEnum enums : RankTypeEnum.values()){
            if (enums.getCode().equals(code)){
                return enums;
            }
        }
        return  null;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
